mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-28 18:00:09 +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
|
||||
// slideshow progress/status...
|
||||
// - 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({
|
||||
config: {
|
||||
'slideshow-looping': 'on',
|
||||
@ -125,6 +127,7 @@ var SlideshowActions = actions.Actions({
|
||||
}
|
||||
})],
|
||||
|
||||
// XXX should this reflect slideshow state???? (ready, running, paused???)
|
||||
slideshowDialog: ['Slideshow/Slideshow...',
|
||||
widgets.makeUIDialog(function(){
|
||||
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
|
||||
// present yet (is null)...
|
||||
// - restore .config['single-image-toggle-on-click']
|
||||
|
||||
@ -1976,6 +1976,10 @@ var ButtonsActions = actions.Actions({
|
||||
'C<sub/>': ['crop', 'browseActions: "Crop/" -- Crop menu...'],
|
||||
//'▤<sub/>': ['collections', 'browseCollections -- Collections...'],
|
||||
//'⛶': ['view', 'toggleSingleImage -- Single image / ribbon toggle'],
|
||||
'▷': ['slideshow', [
|
||||
'toggleSlideshow -- Toggle slideshow',
|
||||
'slideshowDialog -- Slideshow menu...',
|
||||
]],
|
||||
},
|
||||
|
||||
// XXX not sure about these yet...
|
||||
@ -2129,6 +2133,15 @@ module.Buttons = core.ImageGridFeatures.Feature({
|
||||
.html(this.collection ? '●' : '')
|
||||
//*/
|
||||
}],
|
||||
// update slideshow status...
|
||||
['toggleSlideshow',
|
||||
function(){
|
||||
$('.main-buttons.buttons .slideshow.button')
|
||||
.html(this.toggleSlideshow('?') == 'on' ?
|
||||
'◼'
|
||||
//'◻'
|
||||
: '▷')
|
||||
}],
|
||||
// update zoom button status...
|
||||
['viewScale',
|
||||
function(){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user