annotate app/view/About.js @ 483:a43cfdd73757

Added tag 1.0 for changeset a9184ba5ee17
author Torsten Irländer <torsten.irlaender@intevation.de>
date Tue, 21 Jan 2014 17:05:58 +0100
parents debfcc7713e3
children 850ccfe5f3c4
rev   line source
472
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 467
diff changeset
1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 467
diff changeset
2 * Software engineering by Intevation GmbH
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 467
diff changeset
3 *
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 467
diff changeset
4 * This file is Free Software under the GNU GPL (v>=3)
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 467
diff changeset
5 * and comes with ABSOLUTELY NO WARRANTY! Check out
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 467
diff changeset
6 * the documentation coming with IMIS-Labordaten-Application for details.
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 467
diff changeset
7 */
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 467
diff changeset
8
386
00bf2d4f3bd1 Added about dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
9 /*
00bf2d4f3bd1 Added about dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
10 * Window to edit a Probe
00bf2d4f3bd1 Added about dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
11 */
00bf2d4f3bd1 Added about dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
12 Ext.define('Lada.view.About', {
00bf2d4f3bd1 Added about dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
13 extend: 'Ext.window.Window',
00bf2d4f3bd1 Added about dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
14 alias: 'widget.about',
00bf2d4f3bd1 Added about dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
15
00bf2d4f3bd1 Added about dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
16 title: 'Lada Information',
00bf2d4f3bd1 Added about dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
17 // Make size of the dialog dependend of the available space.
00bf2d4f3bd1 Added about dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
18 // TODO: Handle resizing the browser window.
387
6952e5dc9861 Changed size of about window
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 386
diff changeset
19 width: 200,
6952e5dc9861 Changed size of about window
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 386
diff changeset
20 height: 200,
386
00bf2d4f3bd1 Added about dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
21 autoShow: true,
00bf2d4f3bd1 Added about dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
22 autoScroll: true,
00bf2d4f3bd1 Added about dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
23 modal: true,
387
6952e5dc9861 Changed size of about window
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 386
diff changeset
24 layout: "fit",
386
00bf2d4f3bd1 Added about dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
25
00bf2d4f3bd1 Added about dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
26 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
27 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
28 var cver = "1.0";
386
00bf2d4f3bd1 Added about dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
29 this.buttons = [
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 text: 'Abbrechen',
00bf2d4f3bd1 Added about dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
32 scope: this,
422
f9bb1ecf6462 Removed trailing commas.
Raimund Renkert <rrenkert@intevation.de>
parents: 395
diff changeset
33 handler: this.close
386
00bf2d4f3bd1 Added about dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
34 }
00bf2d4f3bd1 Added about dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
35 ];
00bf2d4f3bd1 Added about dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
36 this.items = [
00bf2d4f3bd1 Added about dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
37 { 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
38 ];
00bf2d4f3bd1 Added about dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
39 this.callParent();
422
f9bb1ecf6462 Removed trailing commas.
Raimund Renkert <rrenkert@intevation.de>
parents: 395
diff changeset
40 }
386
00bf2d4f3bd1 Added about dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
41 });
00bf2d4f3bd1 Added about dialog.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
42

http://lada.wald.intevation.org