Mercurial > lada > lada-client
comparison app/view/Viewport.js @ 548:d47ee7439f44
Added new js files.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Fri, 06 Mar 2015 12:43:52 +0100 |
parents | |
children | 817524db4017 |
comparison
equal
deleted
inserted
replaced
547:f172b35a3b92 | 548:d47ee7439f44 |
---|---|
1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz | |
2 * Software engineering by Intevation GmbH | |
3 * | |
4 * This file is Free Software under the GNU GPL (v>=3) | |
5 * and comes with ABSOLUTELY NO WARRANTY! Check out | |
6 * the documentation coming with IMIS-Labordaten-Application for details. | |
7 */ | |
8 | |
9 /** | |
10 * Viewport for the Lada-Client | |
11 * | |
12 * The viewport initialises the graphical elements of the application. For | |
13 * debugging it is possible to initialize other components directly see the | |
14 * initComponent function. | |
15 */ | |
16 Ext.define('Lada.view.Viewport', { | |
17 extend: 'Ext.container.Viewport', | |
18 requires: [ | |
19 'Lada.view.FilterPanel', | |
20 'Lada.view.grid.FilterResult' | |
21 ], | |
22 layout: 'fit', | |
23 initComponent: function() { | |
24 this.items = [{ | |
25 title: '<center>Labordatenerfassung</center>', | |
26 layout: 'border', | |
27 name: 'main', | |
28 items: [{ | |
29 layout: { | |
30 type: 'vbox', | |
31 align: 'stretch' | |
32 }, | |
33 region: 'west', | |
34 split: true, | |
35 border: 1, | |
36 flex: 1, | |
37 dockedItems: [{ | |
38 xtype: 'toolbar', | |
39 dock: 'top', | |
40 items: [{ | |
41 xtype: 'splitbutton', | |
42 text: 'Info', | |
43 menu: { | |
44 items: [{ | |
45 text: 'About', | |
46 action: 'about' | |
47 }] | |
48 } | |
49 }, '->', { | |
50 xtype: 'box', | |
51 autoEl: { | |
52 tag: 'img', | |
53 src: 'resources/img/user-identity.png' | |
54 } | |
55 }, { | |
56 xtype: 'tbtext', | |
57 id: 'userinfo', | |
58 text: '' | |
59 }, { | |
60 xtype: 'box', | |
61 autoEl: { | |
62 tag: 'img', | |
63 src: 'resources/img/network-workgroup.png' | |
64 } | |
65 }, { | |
66 xtype: 'tbtext', | |
67 id: 'groupinfo', | |
68 text: '' | |
69 }] | |
70 }], | |
71 items: [{ | |
72 // Auswahl einer Abfrage. | |
73 xtype: 'filterpanel', | |
74 margin: '0, 10, 0, 10' | |
75 }, { | |
76 // Variables settings for the current selected sql statement. | |
77 xtype: 'fieldset', | |
78 name: 'filtervariables', | |
79 title: 'Variablenbelegung', | |
80 hidden: true, | |
81 margin: '0, 10, 0, 10', | |
82 items: [] | |
83 }] | |
84 }, { | |
85 // Resultlist for the query. | |
86 flex: 3, | |
87 xtype: 'filterresultgrid', | |
88 hidden: false, | |
89 region: 'center' | |
90 }] | |
91 }]; | |
92 this.callParent(arguments); | |
93 } | |
94 }); |