partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

commit 9b9ab8a4ba48b78d3a3060dbf928be53a362e52a
parent 3dcf273c257941b077ed46be1d81d18010f4f908
Author: Felicitus <felicitus@felicitus.org>
Date:   Tue,  5 Jul 2011 07:05:11 +0200

Updated icons for the part units

Diffstat:
Mfrontend/js/Components/MenuBar.js | 2+-
Mfrontend/js/Components/PartUnit/PartUnitEditor.js | 4++--
Mfrontend/js/Components/PartUnit/PartUnitEditorComponent.js | 6+++---
Mfrontend/js/Components/PartUnit/PartUnitGrid.js | 13++++++++-----
4 files changed, 14 insertions(+), 11 deletions(-)

diff --git a/frontend/js/Components/MenuBar.js b/frontend/js/Components/MenuBar.js @@ -28,7 +28,7 @@ Ext.define('PartKeepr.MenuBar', { },{ text: i18n('Part Measure Units'), handler: this.editPartUnits, - icon: "resources/silkicons/table.png" + icon: "resources/fugue-icons/icons/ruler.png" },{ text: i18n("Statistics"), handler: this.showStatistics, diff --git a/frontend/js/Components/PartUnit/PartUnitEditor.js b/frontend/js/Components/PartUnit/PartUnitEditor.js @@ -4,11 +4,11 @@ Ext.define('PartKeepr.PartUnitEditor', { items: [{ xtype: 'textfield', name: 'name', - fieldLabel: i18n("Unit Name") + fieldLabel: i18n("Measurement Unit Name") },{ xtype: 'textfield', name: 'shortName', fieldLabel: i18n("Short Name") }], - saveText: i18n("Save Part Unit") + saveText: i18n("Save Part Measurement Unit") }); diff --git a/frontend/js/Components/PartUnit/PartUnitEditorComponent.js b/frontend/js/Components/PartUnit/PartUnitEditorComponent.js @@ -3,9 +3,9 @@ Ext.define('PartKeepr.PartUnitEditorComponent', { alias: 'widget.PartUnitEditorComponent', navigationClass: 'PartKeepr.PartUnitGrid', editorClass: 'PartKeepr.PartUnitEditor', - newItemText: i18n("New Part Unit"), - deleteMessage: i18n("Do you really wish to delete the part unit'%s'?"), - deleteTitle: i18n("Delete Part Unit"), + newItemText: i18n("New Part Measurement Unit"), + deleteMessage: i18n("Do you really wish to delete the part measurement unit'%s'?"), + deleteTitle: i18n("Delete Part Measurement Unit"), model: 'PartKeepr.PartUnit', initComponent: function () { this.createStore({ diff --git a/frontend/js/Components/PartUnit/PartUnitGrid.js b/frontend/js/Components/PartUnit/PartUnitGrid.js @@ -2,17 +2,20 @@ Ext.define('PartKeepr.PartUnitGrid', { extend: 'PartKeepr.EditorGrid', alias: 'widget.PartUnitGrid', columns: [ - {header: i18n("Part Unit"), dataIndex: 'name', flex: 1}, + {header: i18n("Part Measurement Unit"), dataIndex: 'name', flex: 1}, {header: i18n("Default"), dataIndex: 'default', width: 60, renderer: function (val) { if (val === true) { return "✓"; } else { return ""; }}} ], - addButtonText: i18n("Add Part Unit"), - deleteButtonText: i18n("Delete Part Unit"), + addButtonText: i18n("Add Part Measurement Unit"), + addButtonIcon: "resources/fugue-icons/icons/ruler--plus.png", + deleteButtonText: i18n("Delete Part Measurement Unit"), + deleteButtonIcon: "resources/fugue-icons/icons/ruler--minus.png", + defaultButtonIcon: "resources/fugue-icons/icons/ruler--pencil.png", initComponent: function () { this.callParent(); this.defaultButton = Ext.create("Ext.button.Button", { - icon: 'resources/silkicons/accept.png', - tooltip: i18n('Mark Item as Default'), + icon: this.defaultButtonIcon, + tooltip: i18n('Mark Part Measurement Unit as Default'), disabled: true, handler: this.onDefaultClick, scope: this