annotate app/view/window/About.js @ 885:00e05e112c6a

Moved Ext-Resources to another subdirectory
author Dustin Demuth <dustin@intevation.de>
date Thu, 23 Jul 2015 14:14:04 +0200
parents c6e9bcda69b8
children def27cdd0dfa
rev   line source
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
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
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
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
2 * Software engineering by Intevation GmbH
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
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
3 *
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
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
4 * This file is Free Software under the GNU GPL (v>=3)
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
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
5 * and comes with ABSOLUTELY NO WARRANTY! Check out
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
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
6 * the documentation coming with IMIS-Labordaten-Application for details.
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
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
7 */
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
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
8
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
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
9 /**
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
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
10 * About Window with basic information.
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
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
11 */
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
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
12 Ext.define('Lada.view.window.About', {
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
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
13 extend: 'Ext.window.Window',
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
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
14
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
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
15 layout: 'fit',
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
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
16
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
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
17 initComponent: function() {
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
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
18 var i18n = Lada.getApplication().bundle;
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
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
19
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
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
20 // add listeners to change the window appearence when it becomes inactive
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
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
21 this.on({
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
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
22 activate: function(){
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
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
23 this.getEl().removeCls('window-inactive');
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
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
24 },
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
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
25 deactivate: function(){
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
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
26 this.getEl().addCls('window-inactive');
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
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
27 }
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
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
28 });
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
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
29
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
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
30 var me = this;
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
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
31 this.title = i18n.getMsg('about.window.title');
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
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
32 this.buttons = [{
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
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
33 text: i18n.getMsg('close'),
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
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
34 scope: this,
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
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
35 handler: this.close
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
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
36 }];
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
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
37 this.items = [{
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
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
38 border: 0,
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
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
39 autoscroll: 'true',
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
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
40 items: [{
805
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
41 xtype: 'panel',
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
42 border: 0,
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
43 layout: 'fit',
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
44 bodyPadding: 20,
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
45 html: '<p>'
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
46 + i18n.getMsg('about.window.text.login')
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
47 + '<br />'
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
48 + Lada.username
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
49 + '</p>'
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
50 + '<p>'
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
51 + i18n.getMsg('about.window.text.roles')
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
52 + this.rolesToHtml()
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
53 + '</p>'
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
54 + '<p>'
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
55 + i18n.getMsg('about.window.text.logintime')
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
56 + '<br />'
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
57 + Ext.Date.format(new Date(Lada.logintime), 'd.m.y h:i:s P')
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
58 + '</p>'
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
59 + '<p>'
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
60 + i18n.getMsg('about.window.text.serverversion')+ ' '
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
61 + Lada.serverVersion
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
62 + '</p>'
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
63 + '<p>'
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
64 + i18n.getMsg('about.window.text.clientversion')+' '
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
65 + Lada.clientVersion
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
66 + '</p>'
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
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
67 }]
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
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
68 }];
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
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
69
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
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
70 this.callParent(arguments);
805
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
71 },
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
72
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
73 rolesToHtml: function() {
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
74 var roles = '';
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
75 var r = Lada.userroles.split(',');
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
76 var i;
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
77 for (i in r){
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
78 roles += '<br />' + r[i];
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
79 }
c6e9bcda69b8 About Window
Dustin Demuth <dustin@intevation.de>
parents: 801
diff changeset
80 return roles;
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
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
81 }
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
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
82 });

http://lada.wald.intevation.org