From 7e671ae37f6c951d4db18c446eed52685200b2e0 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 11 Sep 2008 16:47:45 +0200 Subject: rename swat => swat2, so that we don't conflict with samba3 metze (This used to be commit bf852a3dbeee8900fa36978f08a5cdceabcbd926) --- swat2/style/qooxdoo/widgets/core/QxCommand.js | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 swat2/style/qooxdoo/widgets/core/QxCommand.js (limited to 'swat2/style/qooxdoo/widgets/core/QxCommand.js') diff --git a/swat2/style/qooxdoo/widgets/core/QxCommand.js b/swat2/style/qooxdoo/widgets/core/QxCommand.js new file mode 100644 index 0000000000..488de0dd34 --- /dev/null +++ b/swat2/style/qooxdoo/widgets/core/QxCommand.js @@ -0,0 +1,2 @@ +/* Copyright (c): 2002-2005 (Germany): United Internet, 1&1, GMX, Schlund+Partner, Alturo */ +function QxCommand(vShortcut,vKeyCode,vManager){QxTarget.call(this);if(isValid(vShortcut)){this.setShortcut(vShortcut);};if(isValid(vKeyCode)){this.setKeyCode(vKeyCode);};this.setManager(isValid(vManager)?vManager:window.application.getClientWindow().getEventManager());};QxCommand.extend(QxTarget,"QxCommand");QxCommand.addProperty({name:"checked",type:Boolean,defaultValue:false});QxCommand.addProperty({name:"shortcut",type:String});QxCommand.addProperty({name:"keyCode",type:Number});QxCommand.addProperty({name:"manager",type:Object});proto.execute=function(vTarget){this.dispatchEvent(new QxDataEvent("execute",vTarget));return false;};proto._shortcutParts={};proto._modifyShortcut=function(_b1,_b2,_b3,_b4){if(_b1){var a = _b1.toLowerCase().split(/[-+\s]+/);var al=a.length;this._shortcutParts={};for(var i=0;i