[Commits] r2524 - in sandbox/pgiraud/playground/print-multipage/geoext.ux/ux/MultiPagePrint: examples lib/GeoExt.ux
commits at geoext.org
commits at geoext.org
Fri Dec 10 15:48:59 CET 2010
Author: pgiraud
Date: 2010-12-10 15:48:59 +0100 (Fri, 10 Dec 2010)
New Revision: 2524
Modified:
sandbox/pgiraud/playground/print-multipage/geoext.ux/ux/MultiPagePrint/examples/MultiPagePrint.html
sandbox/pgiraud/playground/print-multipage/geoext.ux/ux/MultiPagePrint/examples/MultiPagePrint.js
sandbox/pgiraud/playground/print-multipage/geoext.ux/ux/MultiPagePrint/lib/GeoExt.ux/MultiPagePrint.js
Log:
Don't use tearDown/setUp but hide/show instead
Modified: sandbox/pgiraud/playground/print-multipage/geoext.ux/ux/MultiPagePrint/examples/MultiPagePrint.html
===================================================================
--- sandbox/pgiraud/playground/print-multipage/geoext.ux/ux/MultiPagePrint/examples/MultiPagePrint.html 2010-12-10 14:40:28 UTC (rev 2523)
+++ sandbox/pgiraud/playground/print-multipage/geoext.ux/ux/MultiPagePrint/examples/MultiPagePrint.html 2010-12-10 14:48:59 UTC (rev 2524)
@@ -6,7 +6,8 @@
<script type="text/javascript" src="http://extjs.cachefly.net/ext-3.2.1/ext-all.js"></script>
<link rel="stylesheet" type="text/css" href="http://extjs.cachefly.net/ext-3.2.1/resources/css/ext-all.css" />
<link rel="stylesheet" type="text/css" href="http://extjs.cachefly.net/ext-3.2.1/examples/shared/examples.css" />
- <script src="http://dev.openlayers.org/nightly/OpenLayers.js"></script>
+ <!--<script src="http://dev.openlayers.org/nightly/OpenLayers.js"></script>-->
+ <script src="../../../../openlayers/lib/OpenLayers.js"></script>
<script type="text/javascript" src="../../../../geoext/lib/GeoExt.js"></script>
<!-- script resources for this ux -->
Modified: sandbox/pgiraud/playground/print-multipage/geoext.ux/ux/MultiPagePrint/examples/MultiPagePrint.js
===================================================================
--- sandbox/pgiraud/playground/print-multipage/geoext.ux/ux/MultiPagePrint/examples/MultiPagePrint.js 2010-12-10 14:40:28 UTC (rev 2523)
+++ sandbox/pgiraud/playground/print-multipage/geoext.ux/ux/MultiPagePrint/examples/MultiPagePrint.js 2010-12-10 14:48:59 UTC (rev 2524)
@@ -69,6 +69,7 @@
// a multi page print form
printForm = new GeoExt.ux.MultiPagePrint({
+ title: "Print",
mapPanel: mapPanel,
layer: extentLayer, // optional
autoFit: true,
@@ -76,14 +77,17 @@
bodyStyle: {padding: "5px"},
labelWidth: 65,
fieldsWidth: 115,
- region: "east",
border: false
});
var formCt = new Ext.Panel({
- layout: "fit",
+ layout: "accordion",
region: "east",
- width: 250
+ width: 250,
+ items: [{
+ title: 'First panel',
+ border: false
+ }]
});
new Ext.Panel({
Modified: sandbox/pgiraud/playground/print-multipage/geoext.ux/ux/MultiPagePrint/lib/GeoExt.ux/MultiPagePrint.js
===================================================================
--- sandbox/pgiraud/playground/print-multipage/geoext.ux/ux/MultiPagePrint/lib/GeoExt.ux/MultiPagePrint.js 2010-12-10 14:40:28 UTC (rev 2523)
+++ sandbox/pgiraud/playground/print-multipage/geoext.ux/ux/MultiPagePrint/lib/GeoExt.ux/MultiPagePrint.js 2010-12-10 14:48:59 UTC (rev 2524)
@@ -165,19 +165,19 @@
}
//for accordion
- this.on('expand', this.setUp, this);
- this.on('collapse', this.tearDown, this);
+ this.on('expand', this.show, this);
+ this.on('collapse', this.hide, this);
//for tabs
- this.on('activate', this.setUp, this);
- this.on('deactivate', this.tearDown, this);
+ this.on('activate', this.show, this);
+ this.on('deactivate', this.hide, this);
//for manual enable/disable
- this.on('enable', this.setUp, this);
- this.on('disable', this.tearDown, this);
+ this.on('enable', this.show, this);
+ this.on('disable', this.hide, this);
//for use in an Ext.Window with closeAction close
- this.on('destroy', this.tearDown, this);
+ this.on('destroy', this.hide, this);
},
/** private: method[initForm]
@@ -384,18 +384,18 @@
GeoExt.ux.MultiPagePrint.superclass.beforeDestroy.apply(this, arguments);
},
- /** private: method[setUp]
+ /** private: method[show]
* Handler for the panel's expand/activate/enable event
*/
- setUp: function() {
- this.printExtent.setUp();
+ show: function() {
+ this.printExtent.show();
},
- /** private: method[tearDown]
+ /** private: method[hide]
* Handler for the panel's collapse/deactivate/disable/destroy event
*/
- tearDown: function() {
- this.printExtent.tearDown();
+ hide: function() {
+ this.printExtent.hide();
}
});
More information about the Commits
mailing list