tweaks to menues...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2020-10-26 17:51:12 +03:00
parent a948275934
commit cc1c81747a
4 changed files with 15 additions and 11 deletions

View File

@ -430,12 +430,6 @@ var BrowserHostActions = actions.Actions({
copy: ['Image|Edit/Copy image',
core.doc`Copy image
Copy current image (original ref)...
.copy()
Copy best matching preview of current image...
.copy(size)
NOTE: this must be called from within an event handler...
NOTE: this will not work with file:// paths...
`,

View File

@ -43,7 +43,6 @@ core.ImageGridFeatures.Feature('imagegrid-ui-minimal', [
'keyboard',
'ui-cursor',
'ui-control',
//'ui-copy-image',
'ui-drag-n-drop',
// XXX use one...

View File

@ -2199,6 +2199,7 @@ var BrowseActionsActions = actions.Actions({
'99:$Edit',
'Edit/90:Undo',
'Edit/90:Redo',
'Edit/85:$Copy image',
'Edit/85:.*copy.*',
'Edit/85:.*paste.*',
'Edit/85:.*base.*',
@ -2214,8 +2215,9 @@ var BrowseActionsActions = actions.Actions({
'Navigate/80:.*screen.*',
'Navigate/70:.*ribbon.*',
'$Image',
'Image/98:.*copy.*',
'Image/98:.*paste.*',
'Image/99:$Copy image',
'Image/99:.*copy.*',
'Image/99:.*paste.*',
'Image/98:.*editor.*',
'Image/98:.*folder.*',
'Image/95:.*metadata.*',

View File

@ -1165,12 +1165,21 @@ module.CopyImiage = core.ImageGridFeatures.Feature({
actions: actions.Actions({
// XXX mark copied image(s)...
copy: ['- Image|Edit/Copy image',
copy: ['- Image|Edit/$Copy image',
core.doc`Copy image
Copy current image...
.copy()
Copy best matching preview of current image...
.copy(size)
`,
function(size){
// XXX
}],
// XXX if pasted image(s) is the one(s) marked by copy, do a shift action...
paste: ['- Image|Edit/Paste image',
paste: ['- Image|Edit/$Paste image',
function(){
// XXX
}],