Mercurial > lada > lada-client
annotate app/view/About.js @ 470:4d8819844c48
Fixed circular requirement.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Tue, 14 Jan 2014 15:41:39 +0100 |
parents | fa2a7a37a248 |
children | debfcc7713e3 |
rev | line source |
---|---|
386
00bf2d4f3bd1
Added about dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
1 /* |
00bf2d4f3bd1
Added about dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
2 * Window to edit a Probe |
00bf2d4f3bd1
Added about dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
3 */ |
00bf2d4f3bd1
Added about dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
4 Ext.define('Lada.view.About', { |
00bf2d4f3bd1
Added about dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
5 extend: 'Ext.window.Window', |
00bf2d4f3bd1
Added about dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
6 alias: 'widget.about', |
00bf2d4f3bd1
Added about dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
7 |
00bf2d4f3bd1
Added about dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
8 title: 'Lada Information', |
00bf2d4f3bd1
Added about dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
9 // Make size of the dialog dependend of the available space. |
00bf2d4f3bd1
Added about dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
10 // TODO: Handle resizing the browser window. |
387
6952e5dc9861
Changed size of about window
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
386
diff
changeset
|
11 width: 200, |
6952e5dc9861
Changed size of about window
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
386
diff
changeset
|
12 height: 200, |
386
00bf2d4f3bd1
Added about dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
13 autoShow: true, |
00bf2d4f3bd1
Added about dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
14 autoScroll: true, |
00bf2d4f3bd1
Added about dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
15 modal: true, |
387
6952e5dc9861
Changed size of about window
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
386
diff
changeset
|
16 layout: "fit", |
386
00bf2d4f3bd1
Added about dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
17 |
00bf2d4f3bd1
Added about dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
18 initComponent: function() { |
467
fa2a7a37a248
Set versions in about dialog to 1.0 for client and server.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
434
diff
changeset
|
19 var sver = "1.0"; |
fa2a7a37a248
Set versions in about dialog to 1.0 for client and server.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
434
diff
changeset
|
20 var cver = "1.0"; |
386
00bf2d4f3bd1
Added about dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
21 this.buttons = [ |
00bf2d4f3bd1
Added about dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
22 { |
00bf2d4f3bd1
Added about dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
23 text: 'Abbrechen', |
00bf2d4f3bd1
Added about dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
24 scope: this, |
422
f9bb1ecf6462
Removed trailing commas.
Raimund Renkert <rrenkert@intevation.de>
parents:
395
diff
changeset
|
25 handler: this.close |
386
00bf2d4f3bd1
Added about dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
26 } |
00bf2d4f3bd1
Added about dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
27 ]; |
00bf2d4f3bd1
Added about dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
28 this.items = [ |
00bf2d4f3bd1
Added about dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
29 { html: "<h1>Lada</h1>Server version: " + sver + "<br>Client version: " + cver } |
00bf2d4f3bd1
Added about dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
30 ]; |
00bf2d4f3bd1
Added about dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
31 this.callParent(); |
422
f9bb1ecf6462
Removed trailing commas.
Raimund Renkert <rrenkert@intevation.de>
parents:
395
diff
changeset
|
32 } |
386
00bf2d4f3bd1
Added about dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
33 }); |
00bf2d4f3bd1
Added about dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
34 |