From 7efa66a5e8280d5691cea89717c0188d2d684a6e Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Mon, 4 Jan 2016 05:23:29 +0300 Subject: [PATCH] started work on external editor... Signed-off-by: Alex A. Naanou --- ui (gen4)/features/ui-widgets.js | 59 ++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/ui (gen4)/features/ui-widgets.js b/ui (gen4)/features/ui-widgets.js index c97ec49c..023fdf83 100755 --- a/ui (gen4)/features/ui-widgets.js +++ b/ui (gen4)/features/ui-widgets.js @@ -377,6 +377,65 @@ module.WidgetTest = core.ImageGridFeatures.Feature({ +//--------------------------------------------------------------------- +// External editor... +// XXX need to get the resulting (edited) file and add it to the index... +// XXX move this to a separate feature... + +var ExternalEditorActions = actions.Actions({ + config: { + // XXX + // format: + // [ + // [title, path, args] + // ] + 'external-editors': [ + // XXX need real arguments... + ['Photoshop', 'photoshop.exe', '$CURRENT.raw'], + ], + }, + + openInExtenalEditor: ['Edit/Open with external editor', + function(){ + }], +}) + +var ExternalEditor = +module.ExternalEditor = core.ImageGridFeatures.Feature({ + title: '', + doc: '', + + tag: 'external-editor', + depends: [ + // XXX + ], + + actions: ExternalEditorActions, +}) + + +var ExternalEditorUIActions = actions.Actions({ + // XXX this should be a + listExtenalEditors: ['Edit/List external editors', + function(){ + }], +}) + +var ExternalEditorUI = +module.ExternalEditorUI = core.ImageGridFeatures.Feature({ + title: '', + doc: '', + + tag: 'ui-external-editor', + depends: [ + 'external-editor', + ], + + actions: ExternalEditorUIActions, +}) + + + /********************************************************************** * vim:set ts=4 sw=4 : */ return module })