Mercurial > lada > lada-client
annotate app/view/widget/MapToolbar.js @ 800:4b9b1d3ad9f1
Added about window, There are still some todos when retrieving the server version, the asynchronous request seems to fail and does not evaluate in time
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Thu, 21 May 2015 17:59:48 +0200 |
parents | def8def373e8 |
children | 777bf66dbb11 |
rev | line source |
---|---|
635
def8def373e8
Added a toolbar to the OpenLayers map panel.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz |
def8def373e8
Added a toolbar to the OpenLayers map panel.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
2 * Software engineering by Intevation GmbH |
def8def373e8
Added a toolbar to the OpenLayers map panel.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
3 * |
def8def373e8
Added a toolbar to the OpenLayers map panel.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
4 * This file is Free Software under the GNU GPL (v>=3) |
def8def373e8
Added a toolbar to the OpenLayers map panel.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
5 * and comes with ABSOLUTELY NO WARRANTY! Check out |
def8def373e8
Added a toolbar to the OpenLayers map panel.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
6 * the documentation coming with IMIS-Labordaten-Application for details. |
def8def373e8
Added a toolbar to the OpenLayers map panel.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
7 */ |
def8def373e8
Added a toolbar to the OpenLayers map panel.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
8 |
def8def373e8
Added a toolbar to the OpenLayers map panel.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
9 Ext.define('Lada.view.widget.MapToolbar', { |
def8def373e8
Added a toolbar to the OpenLayers map panel.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
10 extend: 'Ext.toolbar.Toolbar', |
def8def373e8
Added a toolbar to the OpenLayers map panel.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
11 alias: 'widget.maptoolbar', |
def8def373e8
Added a toolbar to the OpenLayers map panel.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
12 |
def8def373e8
Added a toolbar to the OpenLayers map panel.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
13 initComponent: function() { |
def8def373e8
Added a toolbar to the OpenLayers map panel.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
14 this.items = [{ |
def8def373e8
Added a toolbar to the OpenLayers map panel.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
15 icon: 'resources/img/list-add.png', |
def8def373e8
Added a toolbar to the OpenLayers map panel.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
16 tooltip: 'Neuen Ort hinzufügen', |
def8def373e8
Added a toolbar to the OpenLayers map panel.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
17 action: 'add' |
def8def373e8
Added a toolbar to the OpenLayers map panel.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
18 }]; |
def8def373e8
Added a toolbar to the OpenLayers map panel.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
19 this.callParent(arguments); |
def8def373e8
Added a toolbar to the OpenLayers map panel.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
20 } |
def8def373e8
Added a toolbar to the OpenLayers map panel.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
21 }); |