mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 02:10:08 +00:00
slideshow fixes + button...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
904abeed68
commit
a8e095c09d
@ -29,6 +29,8 @@ var overlay = require('lib/widget/overlay')
|
|||||||
// XXX would be a good idea to add provision for a timer to indicate
|
// XXX would be a good idea to add provision for a timer to indicate
|
||||||
// slideshow progress/status...
|
// slideshow progress/status...
|
||||||
// - make this a separate feature with a toggler
|
// - make this a separate feature with a toggler
|
||||||
|
// XXX might be a good idea to add "slideshow hold", for example while
|
||||||
|
// mouse down...
|
||||||
var SlideshowActions = actions.Actions({
|
var SlideshowActions = actions.Actions({
|
||||||
config: {
|
config: {
|
||||||
'slideshow-looping': 'on',
|
'slideshow-looping': 'on',
|
||||||
@ -125,6 +127,7 @@ var SlideshowActions = actions.Actions({
|
|||||||
}
|
}
|
||||||
})],
|
})],
|
||||||
|
|
||||||
|
// XXX should this reflect slideshow state???? (ready, running, paused???)
|
||||||
slideshowDialog: ['Slideshow/Slideshow...',
|
slideshowDialog: ['Slideshow/Slideshow...',
|
||||||
widgets.makeUIDialog(function(){
|
widgets.makeUIDialog(function(){
|
||||||
var that = this
|
var that = this
|
||||||
@ -299,6 +302,9 @@ module.Slideshow = core.ImageGridFeatures.Feature({
|
|||||||
}
|
}
|
||||||
}],
|
}],
|
||||||
|
|
||||||
|
['load',
|
||||||
|
function(){ this.toggleSlideshow('off') }],
|
||||||
|
|
||||||
// - build the slideshow workspace for the first time if it's not
|
// - build the slideshow workspace for the first time if it's not
|
||||||
// present yet (is null)...
|
// present yet (is null)...
|
||||||
// - restore .config['single-image-toggle-on-click']
|
// - restore .config['single-image-toggle-on-click']
|
||||||
|
|||||||
@ -1976,6 +1976,10 @@ var ButtonsActions = actions.Actions({
|
|||||||
'C<sub/>': ['crop', 'browseActions: "Crop/" -- Crop menu...'],
|
'C<sub/>': ['crop', 'browseActions: "Crop/" -- Crop menu...'],
|
||||||
//'▤<sub/>': ['collections', 'browseCollections -- Collections...'],
|
//'▤<sub/>': ['collections', 'browseCollections -- Collections...'],
|
||||||
//'⛶': ['view', 'toggleSingleImage -- Single image / ribbon toggle'],
|
//'⛶': ['view', 'toggleSingleImage -- Single image / ribbon toggle'],
|
||||||
|
'▷': ['slideshow', [
|
||||||
|
'toggleSlideshow -- Toggle slideshow',
|
||||||
|
'slideshowDialog -- Slideshow menu...',
|
||||||
|
]],
|
||||||
},
|
},
|
||||||
|
|
||||||
// XXX not sure about these yet...
|
// XXX not sure about these yet...
|
||||||
@ -2129,6 +2133,15 @@ module.Buttons = core.ImageGridFeatures.Feature({
|
|||||||
.html(this.collection ? '●' : '')
|
.html(this.collection ? '●' : '')
|
||||||
//*/
|
//*/
|
||||||
}],
|
}],
|
||||||
|
// update slideshow status...
|
||||||
|
['toggleSlideshow',
|
||||||
|
function(){
|
||||||
|
$('.main-buttons.buttons .slideshow.button')
|
||||||
|
.html(this.toggleSlideshow('?') == 'on' ?
|
||||||
|
'◼'
|
||||||
|
//'◻'
|
||||||
|
: '▷')
|
||||||
|
}],
|
||||||
// update zoom button status...
|
// update zoom button status...
|
||||||
['viewScale',
|
['viewScale',
|
||||||
function(){
|
function(){
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user