[Commits] r484 - in sandbox/website/trunk: docsrc/_static docsrc/lib docsrc/lib/GeoExt/widgets geoext/lib/GeoExt/widgets

commits at geoext.org commits at geoext.org
Mon Apr 27 21:24:28 CEST 2009


Author: tschaub
Date: 2009-04-27 21:24:27 +0200 (Mon, 27 Apr 2009)
New Revision: 484

Added:
   sandbox/website/trunk/docsrc/lib/GeoExt/widgets/MapPanel2.rst
   sandbox/website/trunk/geoext/lib/GeoExt/widgets/MapPanel2.js
Modified:
   sandbox/website/trunk/docsrc/_static/geoext.css
   sandbox/website/trunk/docsrc/lib/GeoExt/widgets/MapPanel.rst
   sandbox/website/trunk/docsrc/lib/template.jst
   sandbox/website/trunk/geoext/lib/GeoExt/widgets/MapPanel.js
Log:
demonstrate inheritance

Modified: sandbox/website/trunk/docsrc/_static/geoext.css
===================================================================
--- sandbox/website/trunk/docsrc/_static/geoext.css	2009-04-27 19:19:01 UTC (rev 483)
+++ sandbox/website/trunk/docsrc/_static/geoext.css	2009-04-27 19:24:27 UTC (rev 484)
@@ -5,6 +5,10 @@
     padding: 0 2em;
     background-color: white;
 }
+.meta ul {
+    list-style-type: none;
+    padding: 0;
+}
 
 /* don't display class names for attributes */
 .attribute .descclassname {

Modified: sandbox/website/trunk/docsrc/lib/GeoExt/widgets/MapPanel.rst
===================================================================
--- sandbox/website/trunk/docsrc/lib/GeoExt/widgets/MapPanel.rst	2009-04-27 19:19:01 UTC (rev 483)
+++ sandbox/website/trunk/docsrc/lib/GeoExt/widgets/MapPanel.rst	2009-04-27 19:24:27 UTC (rev 484)
@@ -9,7 +9,8 @@
 
 
 Extends
-    `Ext.Panel <http://extjs.com/deploy/dev/docs/?class=Ext.Panel>`_
+    * `Ext.Panel <http://extjs.com/deploy/dev/docs/?class=Ext.Panel>`_
+    
 
 
 

Added: sandbox/website/trunk/docsrc/lib/GeoExt/widgets/MapPanel2.rst
===================================================================
--- sandbox/website/trunk/docsrc/lib/GeoExt/widgets/MapPanel2.rst	                        (rev 0)
+++ sandbox/website/trunk/docsrc/lib/GeoExt/widgets/MapPanel2.rst	2009-04-27 19:24:27 UTC (rev 484)
@@ -0,0 +1,115 @@
+
+.. currentmodule:: GeoExt
+
+:class:`GeoExt.MapPanel2`
+=================================
+
+
+.. cssclass:: meta
+
+
+Extends
+    * `Ext.Panel <http://extjs.com/deploy/dev/docs/?class=Ext.Panel>`_
+    * :class:`GeoExt.MapPanel`
+
+
+
+xtype
+    ``gx_mappanel2``
+
+
+
+.. class:: MapPanel2(config)
+
+    This is the content for 2.
+
+
+
+Example Use
+-----------
+
+Pretend some example goes here.
+
+    
+
+
+Config Options
+--------------
+
+Configuration properties in addition to
+those listed for `Ext.Panel <http://extjs.com/deploy/dev/docs/?class=Ext.Panel>`_.
+
+
+.. describe:: center
+
+      
+    ``OpenLayers.LonLat or Array(Number)``  A location for the map center.  If
+    an array is provided, the first two items should represent x & y coordinates.
+
+.. describe:: extent
+
+      
+    ``OpenLayers.Bounds or Array(Number)``  An initial extent for the map (used
+    if center and zoom are not provided.  If an array, the first four items
+    should be minx, miny, maxx, maxy.
+
+.. describe:: foo
+
+    This foo comes from MapPanel2
+
+.. describe:: layers
+
+     
+    ``GeoExt.data.LayerStore or GeoExt.data.GroupingStore or Array(OpenLayers.Layer)``
+    A store holding records. If not provided, an empty
+    :class:`GeoExt.data.LayerStore` will be created.
+
+.. describe:: map
+
+     
+    ``OpenLayers.Map or Object``  A configured map or a configuration object
+    for the map constructor.  A configured map will be available after
+    construction through the :attr:`map` property.
+
+.. describe:: zoom
+
+      
+    ``Number``  An initial zoom level for the map.
+
+
+
+
+Public Properties
+-----------------
+
+Public properties in addition to those
+listed for `Ext.Panel <http://extjs.com/deploy/dev/docs/?class=Ext.Panel>`_.
+
+
+.. attribute:: MapPanel2.layers
+
+          
+    :class:`GeoExt.data.LayerStore`  A store containing
+    :class:`GeoExt.data.LayerRecord` objects.
+
+.. attribute:: MapPanel2.map
+
+    
+    ``OpenLayers.Map``  A configured map object.
+
+
+
+
+
+
+Events
+------
+
+Events in addition to those
+listed for `Ext.Panel <http://extjs.com/deploy/dev/docs/?class=Ext.Panel>`_.
+
+
+.. describe:: bar
+
+    This class might have some custom events.
+

Modified: sandbox/website/trunk/docsrc/lib/template.jst
===================================================================
--- sandbox/website/trunk/docsrc/lib/template.jst	2009-04-27 19:19:01 UTC (rev 483)
+++ sandbox/website/trunk/docsrc/lib/template.jst	2009-04-27 19:24:27 UTC (rev 484)
@@ -4,7 +4,7 @@
     a doc with the following sections:
     
         * Header (full class name)
-        * Parent Link (optional link to ext super)
+        * Base Link and Ineritance (optional link to ext super and parent classes)
         * Xtype (optional)
         * Constructor (class def)
         * Examples (optional)
@@ -19,12 +19,13 @@
 :class:`{{ module }}.{{ class }}`
 =================================
 
-{% if parent_link is defined or xtype is defined %}
+{% if base_link is defined or xtype is defined or _parents is defined%}
 .. cssclass:: meta
 
-{% if parent_link is defined %}
+{% if base_link is defined or _parents is defined %}
 Extends
-    {{ parent_link }}
+    {% if base_link %}* {{ base_link }}{% endif %}
+    {% if _parents %}{% for parent in _parents %}* :class:`{{ parent.module }}.{{ parent.class }}`{% endfor %}{% endif %}
 {% endif %}
 
 {% if xtype is defined %}
@@ -46,8 +47,8 @@
 Config Options
 --------------
 
-Configuration properties{% if parent_link is defined %} in addition to
-those listed for {{ parent_link }}{% endif %}.
+Configuration properties{% if base_link is defined %} in addition to
+those listed for {{ base_link }}{% endif %}.
 
 {% for (name, desc) in config|dictsort %}
 .. describe:: {{ name }}
@@ -60,8 +61,8 @@
 Public Properties
 -----------------
 
-Public properties{% if parent_link is defined %} in addition to those
-listed for {{ parent_link }}{% endif %}.
+Public properties{% if base_link is defined %} in addition to those
+listed for {{ base_link }}{% endif %}.
 
 {% for (name, desc) in properties|dictsort %}
 .. attribute:: {{ class }}.{{ name }}
@@ -74,8 +75,8 @@
 Public Methods
 --------------
 
-Public methods{% if parent_link is defined %} in addition to those
-listed for {{ parent_link }}{% endif %}.
+Public methods{% if base_link is defined %} in addition to those
+listed for {{ base_link }}{% endif %}.
 
 {% for (name, desc) in methods|dictsort %}
 .. method:: {{ class }}.{{ name }}
@@ -88,8 +89,8 @@
 Events
 ------
 
-Events{% if parent_link is defined %} in addition to those
-listed for {{ parent_link }}{% endif %}.
+Events{% if base_link is defined %} in addition to those
+listed for {{ base_link }}{% endif %}.
 
 {% for (name, desc) in events|dictsort %}
 .. describe:: {{ name }}

Modified: sandbox/website/trunk/geoext/lib/GeoExt/widgets/MapPanel.js
===================================================================
--- sandbox/website/trunk/geoext/lib/GeoExt/widgets/MapPanel.js	2009-04-27 19:19:01 UTC (rev 483)
+++ sandbox/website/trunk/geoext/lib/GeoExt/widgets/MapPanel.js	2009-04-27 19:24:27 UTC (rev 484)
@@ -12,7 +12,7 @@
 /** jst: (define)
  *  module = GeoExt
  *  class = MapPanel
- *  parent_link = `Ext.Panel <http://extjs.com/deploy/dev/docs/?class=Ext.Panel>`_
+ *  base_link = `Ext.Panel <http://extjs.com/deploy/dev/docs/?class=Ext.Panel>`_
  */
 Ext.namespace("GeoExt");
 

Added: sandbox/website/trunk/geoext/lib/GeoExt/widgets/MapPanel2.js
===================================================================
--- sandbox/website/trunk/geoext/lib/GeoExt/widgets/MapPanel2.js	                        (rev 0)
+++ sandbox/website/trunk/geoext/lib/GeoExt/widgets/MapPanel2.js	2009-04-27 19:24:27 UTC (rev 484)
@@ -0,0 +1,27 @@
+/** jst: (extends)
+ *  GeoExt/widgets/MapPanel.js
+ */
+
+/** jst: (define)
+ *  module = GeoExt
+ *  class = MapPanel2
+ *  xtype = gx_mappanel2
+ */
+
+/** jst: constructor
+ *  .. class:: MapPanel2(config)
+ *
+ *      This is the content for 2.
+ */
+
+/** jst: example
+ *  Pretend some example goes here.
+ */
+
+/** jst: config[foo]
+ *  This foo comes from MapPanel2
+ */
+
+/** jst: events[bar]
+ *  This class might have some custom events.
+ */
\ No newline at end of file



More information about the Commits mailing list