| New file |
| | |
| | | define([ |
| | | "base/AppEvent", |
| | | "dojo", |
| | | "dojo/_base/declare", |
| | | "dojo/_base/lang", |
| | | "controls/toolbar/tools/BaseTool", |
| | | "dojo/dom-style" |
| | | ], function( |
| | | AppEvent, |
| | | dojo, |
| | | declare, |
| | | lang, |
| | | BaseTool, |
| | | domStyle |
| | | ) { |
| | | var RL = declare([BaseTool], { |
| | | constructor: function(args) { |
| | | this.id="printbutton"; |
| | | this.widgetId="PrintWidget"; |
| | | this.tooltip="地图打印"; |
| | | this._normalIconClass="tool-print-normal"; |
| | | this._overIconClass="tool-print-over"; |
| | | this._selectedIconClass="tool-print-select"; |
| | | AppEvent.addAppEventListener(AppEvent.RUN_WIDGET,lang.hitch(this,function(args){ |
| | | |
| | | })); |
| | | }, |
| | | activate: function(args) { |
| | | |
| | | AppEvent.dispatchAppEvent(AppEvent.RUN_WIDGET,this.widgetId); |
| | | }, |
| | | postCreate: function() { |
| | | this.inherited(arguments); |
| | | }, |
| | | deactivate: function() { |
| | | this.inherited(arguments); |
| | | AppEvent.dispatchAppEvent(AppEvent.CLOSE_WIDGET,this.widgetId); |
| | | } |
| | | }); |
| | | return RL; |
| | | }); |