dustin@975: /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz dustin@975: * Software engineering by Intevation GmbH dustin@975: * dustin@975: * This file is Free Software under the GNU GPL (v>=3) dustin@975: * and comes with ABSOLUTELY NO WARRANTY! Check out dustin@975: * the documentation coming with IMIS-Labordaten-Application for details. dustin@975: */ dustin@975: dustin@975: /** dustin@975: * Grid to list the result of the Filter dustin@975: */ dustin@975: Ext.define('Lada.view.grid.MessprogrammeList', { dustin@975: extend: 'Lada.view.widget.DynamicGrid', dustin@975: alias: 'widget.messprogrammelistgrid', dustin@975: dustin@975: requires: 'Lada.view.window.DeleteProbe', dustin@975: dustin@975: initComponent: function() { dustin@975: var i18n = Lada.getApplication().bundle; dustin@975: this.emptyText = i18n.getMsg('messprogramme.emptyGrid'); ehuber@1161: this.selModel = Ext.create('Ext.selection.CheckboxModel', { ehuber@1161: checkOnly: true, ehuber@1161: injectCheckbox: 0 ehuber@1161: }); dustin@975: dustin@975: this.dockedItems = [{ dustin@975: xtype: 'toolbar', dustin@975: dock: 'top', dustin@975: items: [{ dustin@975: xtype: 'tbtext', dustin@975: text: i18n.getMsg('messprogramme.gridTitle') dustin@975: }, dustin@975: '->', dustin@975: { dustin@975: text: i18n.getMsg('messprogramme.button.create'), dustin@975: icon: 'resources/img/list-add.png', dustin@975: action: 'addMessprogramm' dustin@975: }, { dustin@975: text: i18n.getMsg('messprogramme.button.generate'), dustin@975: icon: 'resources/img/view-time-schedule-insert.png', dustin@977: action: 'genProbenFromMessprogramm', dustin@977: disabled: true // disabled on startup, will be enabled by controller if necessary dustin@975: }] dustin@975: }]; dustin@975: this.columns = []; dustin@975: this.callParent(arguments); dustin@975: } dustin@975: }); dustin@975: dustin@975: