comparison app/view/Viewport.js @ 383:fe8d6e1b08ff

Added toolbar to the mainwindow.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Thu, 29 Aug 2013 14:14:27 +0200
parents cebed9ef8293
children ea424aacd07f
comparison
equal deleted inserted replaced
382:91193c49c2bb 383:fe8d6e1b08ff
40 var clientVersion = "r261 (2013-07-26)"; 40 var clientVersion = "r261 (2013-07-26)";
41 var user = info.get('user'); 41 var user = info.get('user');
42 var groups = info.get('groups'); 42 var groups = info.get('groups');
43 var serverVersion = info.get('version'); 43 var serverVersion = info.get('version');
44 var info = Ext.getCmp('systeminfo'); 44 var info = Ext.getCmp('systeminfo');
45 info.update('Nutzer: '+user+' | Gruppe(n): '+groups+' | Server: '+serverVersion+' | Client: '+clientVersion); 45 var groupinfo = Ext.getCmp('groupinfo');
46 var userinfo = Ext.getCmp('userinfo');
47 userinfo.update(user);
48 groupinfo.update(groups);
49 info.update('Server: '+serverVersion+' | Client: '+clientVersion);
46 info.show(); 50 info.show();
47 console.log(info); 51 console.log(info);
48 } 52 }
49 }); 53 });
50 }, 54 },
141 * Function to initialize the search window. This is the default method 145 * Function to initialize the search window. This is the default method
142 * called by the {@link Lada.view.Viewport#initComponent initComponent} method. 146 * called by the {@link Lada.view.Viewport#initComponent initComponent} method.
143 * @private 147 * @private
144 */ 148 */
145 initSearch: function() { 149 initSearch: function() {
146 this.items = { 150 this.items = [{
147 xtype: 'panel', 151 xtype: 'panel',
148 title: '<center>Probenauswahlmaske</center>', 152 title: '<center>Probenauswahlmaske</center>',
149 bodyPadding: '10 10', 153 bodyPadding: '10 10',
154 dockedItems: [
155 {
156 xtype: "toolbar",
157 dock: "top",
158 items: [{
159 xtype: "splitbutton",
160 text: "Info",
161 menu: {
162 items: [{
163 text: "About"
164 }]
165 }
166 },
167 "->",
168 "User:",
169 {xtype: "tbtext", id:"userinfo", text:"test"},
170 "Blubb",
171 "Group:",
172 {xtype: "tbtext", id:"groupinfo", text:"test"}
173 ]
174 }
175 ],
150 items: [ 176 items: [
151 // Informationen über Nutzer/Gruppe/Version 177 // Informationen über Nutzer/Gruppe/Version
152 { 178 {
153 xtype: 'panel', 179 xtype: 'panel',
154 id: 'systeminfo', 180 id: 'systeminfo',
196 id: 'result', 222 id: 'result',
197 xtype: 'probenlist', 223 xtype: 'probenlist',
198 hidden: false 224 hidden: false
199 } 225 }
200 ] 226 ]
201 }; 227 }];
202 } 228 }
203 }); 229 });

http://lada.wald.intevation.org