comparison app.js @ 25:f964a50bfe57

Restructured the application. Fixed layouts etc.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Wed, 08 May 2013 12:20:06 +0200
parents 72778ac34dbb
children 3c7bfff8bd64
comparison
equal deleted inserted replaced
24:72778ac34dbb 25:f964a50bfe57
1 Ext.application({ 1 Ext.application({
2 name: 'Lada', 2 name: 'Lada',
3 // Setting this variable to true should trigger loading the Viewport.js 3 // Setting this variable to true should trigger loading the Viewport.js
4 // file which sets ob the viewport. But this does not happen. 4 // file which sets ob the viewport. But this does not happen.
5 autoCreateViewprt: false, 5 autoCreateViewport: true,
6 launch: function() { 6 launch: function() {
7 // Start the application. 7 // Start the application.
8 console.log('Launching the application'); 8 console.log('Launching the application');
9
10 // This code works here, but this should usually be done in the
11 // Viewport.js class.
12 Ext.create('Ext.panel.Panel', {
13 renderTo: Ext.getBody(),
14 title: '<center>Probenauswahlmaske</center>',
15 items:[
16 {
17 xtype: 'panel',
18 id: 'searchSelection',
19 border: false,
20 items: [
21 // 1. SQL-Selection
22 // 1.1 Just a small texttual field
23 {
24 xtype: 'displayfield',
25 padding : '10 0',
26 fieldLabel: '<b>SQL-Auswahl</b>'
27 },
28 // 1.2 Selection of prepared sql statements
29 {
30 xtype: 'sqllist'
31 }
32 ]
33 },
34 {
35 xtype: 'panel',
36 id: 'searchVariables',
37 hidden: true,
38 border: false,
39 items: [
40 // 2. Variable-Definition. Depending on the SQL-Selection we
41 // need to show a small form to be able to diefine some values
42 // within the preselected Search-statement.
43 // 2.1 Just a small texttual field
44 {
45 xtype: 'displayfield',
46 padding : '10 0',
47 fieldLabel: '<b>Variablenbelegung (Zeiten in UTC)</b>',
48 labelWidth: 500
49 }
50
51 ]
52 },
53 {
54 xtype: 'probenlist',
55 id: 'searchResult',
56 hidden: true,
57 }
58 ]
59 });
60 }, 9 },
61 // Define the controllers of the application. They will be initialized 10 // Define the controllers of the application. They will be initialized
62 // first before the application "launch" function is called. 11 // first before the application "launch" function is called.
63 controllers: [ 12 controllers: [
64 'Proben', 13 'Proben',

http://lada.wald.intevation.org