mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
started work on external editor...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
0932a2ca8e
commit
7efa66a5e8
@ -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 })
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user