torsten@472: /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz torsten@472: * Software engineering by Intevation GmbH torsten@472: * torsten@472: * This file is Free Software under the GNU GPL (v>=3) torsten@472: * and comes with ABSOLUTELY NO WARRANTY! Check out raimund@497: * the documentation coming with IMIS-Labordaten-Application for details. torsten@472: */ torsten@472: torsten@346: /* torsten@346: * Window to create and edit a Kommentar for Messungen torsten@346: */ torsten@207: Ext.define('Lada.view.mkommentare.Create', { torsten@207: extend: 'Ext.window.Window', torsten@207: alias: 'widget.mkommentarecreate', torsten@207: torsten@207: title: 'Maske für Messungskommentare', torsten@207: // Make size of the dialog dependend of the available space. torsten@207: // TODO: Handle resizing the browser window. torsten@207: autoShow: true, torsten@207: autoScroll: true, torsten@207: modal: true, torsten@207: torsten@207: requires: [ torsten@207: 'Lada.view.mkommentare.CreateForm' torsten@207: ], torsten@207: initComponent: function() { raimund@497: var form = Ext.create('Lada.view.mkommentare.CreateForm', raimund@497: this.initialConfig); raimund@491: this.buttons = [{ raimund@491: text: 'Speichern', raimund@491: scope: form, raimund@491: action: 'save' raimund@491: }, { raimund@491: text: 'Abbrechen', raimund@491: scope: this, raimund@491: handler: this.close raimund@491: }]; torsten@271: this.items = [form]; torsten@207: this.callParent(); torsten@207: } torsten@207: });