mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 10:20:08 +00:00
added ribbon menu and soe cleanup...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
4842da32fd
commit
f98e36a4bf
@ -481,13 +481,13 @@ actions.Actions({
|
|||||||
this.focusImage()
|
this.focusImage()
|
||||||
}],
|
}],
|
||||||
|
|
||||||
shiftRibbonUp: ['Edit/Shift ribbon up',
|
shiftRibbonUp: ['Ribbon|Edit|Sort/Shift ribbon up',
|
||||||
function(target){
|
function(target){
|
||||||
this.data.shiftRibbonUp(target)
|
this.data.shiftRibbonUp(target)
|
||||||
// XXX is this the right way to go/???
|
// XXX is this the right way to go/???
|
||||||
this.focusImage()
|
this.focusImage()
|
||||||
}],
|
}],
|
||||||
shiftRibbonDown: ['Edit/Shift ribbon down',
|
shiftRibbonDown: ['Ribbon|Edit|Sort/Shift ribbon down',
|
||||||
function(target){
|
function(target){
|
||||||
this.data.shiftRibbonDown(target)
|
this.data.shiftRibbonDown(target)
|
||||||
// XXX is this the right way to go/???
|
// XXX is this the right way to go/???
|
||||||
@ -511,7 +511,7 @@ actions.Actions({
|
|||||||
|
|
||||||
reverseImages: ['Edit|Sort/Reverse image order',
|
reverseImages: ['Edit|Sort/Reverse image order',
|
||||||
function(){ this.data.reverseImages() }],
|
function(){ this.data.reverseImages() }],
|
||||||
reverseRibbons: ['Edit|Sort/Reverse ribbon order',
|
reverseRibbons: ['Ribbon|Edit|Sort/Reverse ribbon order',
|
||||||
function(){ this.data.reverseRibbons() }],
|
function(){ this.data.reverseRibbons() }],
|
||||||
|
|
||||||
// XXX align to ribbon...
|
// XXX align to ribbon...
|
||||||
@ -564,7 +564,7 @@ actions.Actions({
|
|||||||
this.images
|
this.images
|
||||||
&& this.images.rotateImage(this.data.getImage(target), direction || 'cw')
|
&& this.images.rotateImage(this.data.getImage(target), direction || 'cw')
|
||||||
}],
|
}],
|
||||||
flip: ['- Flip|Edit/Flip image',
|
flip: ['- Image|Edit/Flip image',
|
||||||
function(target, direction){
|
function(target, direction){
|
||||||
if(target == 'vertical' || target == 'horizontal'){
|
if(target == 'vertical' || target == 'horizontal'){
|
||||||
direction = target
|
direction = target
|
||||||
@ -591,7 +591,7 @@ actions.Actions({
|
|||||||
// - on init: select start/end/base
|
// - on init: select start/end/base
|
||||||
// - allow user to reset/move
|
// - allow user to reset/move
|
||||||
// - on accept: run
|
// - on accept: run
|
||||||
alignToRibbon: ['Ribbons|Edit/Align top ribbon to base',
|
alignToRibbon: ['Ribbon|Edit/Align top ribbon to base',
|
||||||
function(target, start, end){
|
function(target, start, end){
|
||||||
this.data = this.data.alignToRibbon(target, start, end)
|
this.data = this.data.alignToRibbon(target, start, end)
|
||||||
}],
|
}],
|
||||||
|
|||||||
@ -163,6 +163,7 @@ module.GLOBAL_KEYBOARD = {
|
|||||||
default: 'rotateCW',
|
default: 'rotateCW',
|
||||||
shift: 'reverseImages',
|
shift: 'reverseImages',
|
||||||
ctrl: 'loadNewImages!',
|
ctrl: 'loadNewImages!',
|
||||||
|
alt: 'browseActions: "/Ribbon/" -- Open ribbon menu',
|
||||||
'ctrl+alt': 'reload!',
|
'ctrl+alt': 'reload!',
|
||||||
'ctrl+shift': 'F5',
|
'ctrl+shift': 'F5',
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user