diff 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
line wrap: on
line diff
--- a/app.js	Tue May 07 17:20:11 2013 +0200
+++ b/app.js	Wed May 08 12:20:06 2013 +0200
@@ -2,61 +2,10 @@
     name: 'Lada',
     // Setting this variable to true should trigger loading the Viewport.js
     // file which sets ob the viewport. But this does not happen.
-    autoCreateViewprt: false,
+    autoCreateViewport: true,
     launch: function() {
         // Start the application.
         console.log('Launching the application');
-
-        // This code works here, but this should usually be done in the
-        // Viewport.js class.
-        Ext.create('Ext.panel.Panel', {
-            renderTo: Ext.getBody(),
-            title: '<center>Probenauswahlmaske</center>',
-            items:[
-                {
-                    xtype: 'panel',
-                    id: 'searchSelection',
-                    border: false,
-                    items: [
-                        // 1. SQL-Selection
-                        // 1.1 Just a small texttual field
-                        {
-                            xtype: 'displayfield',
-                            padding : '10 0',
-                            fieldLabel: '<b>SQL-Auswahl</b>'
-                        },
-                        // 1.2 Selection of prepared sql statements
-                        {
-                            xtype: 'sqllist'
-                        }
-                    ]
-                },
-                {
-                    xtype: 'panel',
-                    id: 'searchVariables',
-                    hidden: true,
-                    border: false,
-                    items: [
-                        // 2. Variable-Definition. Depending on the SQL-Selection we
-                        // need to show a small form to be able to diefine some values
-                        // within the preselected Search-statement.
-                        // 2.1 Just a small texttual field
-                        {
-                            xtype: 'displayfield',
-                            padding : '10 0',
-                            fieldLabel: '<b>Variablenbelegung (Zeiten in UTC)</b>',
-                            labelWidth: 500
-                        }
-
-                    ]
-                },
-                {
-                    xtype: 'probenlist',
-                    id: 'searchResult',
-                    hidden: true,
-                }
-            ]
-        });
     },
     // Define the controllers of the application. They will be initialized
     // first before the application "launch" function is called.

http://lada.wald.intevation.org