ControlInput: function() {\r
var obj = new this.EventComponent(_kiwi.app.controlbox);\r
var funcs = {\r
- processInput: 'run'\r
+ processInput: 'run', addPluginIcon: 'addPluginIcon'\r
};\r
\r
_.each(funcs, function(controlbox_fn, func_name) {\r
if (!this._callbacks['command:' + command]) {\r
this.trigger('unknown_command', {command: command, params: params});\r
}\r
+ },\r
+\r
+\r
+ addPluginIcon: function ($icon) {\r
+ var $tool = $('<div class="tool"></div>').append($icon);\r
+ this.$el.find('.input_tools').append($tool);\r
+ _kiwi.app.view.doLayout();\r
}\r
});\r
\r