Mercurial > lada > lada-client
changeset 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 | 91193c49c2bb |
children | ea424aacd07f |
files | app/view/Viewport.js |
diffstat | 1 files changed, 29 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/app/view/Viewport.js Thu Aug 29 10:28:58 2013 +0200 +++ b/app/view/Viewport.js Thu Aug 29 14:14:27 2013 +0200 @@ -42,7 +42,11 @@ var groups = info.get('groups'); var serverVersion = info.get('version'); var info = Ext.getCmp('systeminfo'); - info.update('Nutzer: '+user+' | Gruppe(n): '+groups+' | Server: '+serverVersion+' | Client: '+clientVersion); + var groupinfo = Ext.getCmp('groupinfo'); + var userinfo = Ext.getCmp('userinfo'); + userinfo.update(user); + groupinfo.update(groups); + info.update('Server: '+serverVersion+' | Client: '+clientVersion); info.show(); console.log(info); } @@ -143,10 +147,32 @@ * @private */ initSearch: function() { - this.items = { + this.items = [{ xtype: 'panel', title: '<center>Probenauswahlmaske</center>', bodyPadding: '10 10', + dockedItems: [ + { + xtype: "toolbar", + dock: "top", + items: [{ + xtype: "splitbutton", + text: "Info", + menu: { + items: [{ + text: "About" + }] + } + }, + "->", + "User:", + {xtype: "tbtext", id:"userinfo", text:"test"}, + "Blubb", + "Group:", + {xtype: "tbtext", id:"groupinfo", text:"test"} + ] + } + ], items: [ // Informationen über Nutzer/Gruppe/Version { @@ -198,6 +224,6 @@ hidden: false } ] - }; + }]; } });