mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
some generalization and refactoring...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
db736cea92
commit
393846549d
12
ui/TODO.otl
12
ui/TODO.otl
@ -112,7 +112,7 @@ Priority work
|
||||
[X] disable transitions...
|
||||
[_] basic wrapper
|
||||
| hook-in os-specific API
|
||||
[_] 23% Preview II (optional features)
|
||||
[_] 25% Preview II (optional features)
|
||||
[_] slideshow...
|
||||
[_] 50% serialization/deserialization
|
||||
[X] JSON loader/unloader
|
||||
@ -153,10 +153,10 @@ Priority work
|
||||
[_] double tap/click to zoom (a-la iPad)
|
||||
| fit <-> actual pixels (max)
|
||||
[_] pinch to zoom
|
||||
[_] 33% add sort/re-sort capability...
|
||||
[_] 66% add sort/re-sort capability...
|
||||
[X] abstract out image id
|
||||
[_] replace id (use something else like filename)
|
||||
[_] in-place sort ribbons
|
||||
[X] in-place sort ribbons
|
||||
[_] 50% option to disable processor intensive features
|
||||
[X] global transitions
|
||||
[_] global opacity -- do a layout without opacity
|
||||
@ -203,9 +203,13 @@ Priority work
|
||||
[X] viewer
|
||||
[_] select source
|
||||
[_] slideshow
|
||||
[X] 100% ribbon sorting
|
||||
[X] 100% image sorting
|
||||
[X] ribbon navigation
|
||||
[X] shift image between ribbons
|
||||
[X] 100% basic large scale operations
|
||||
[X] sort all images
|
||||
[X] reverse all images
|
||||
[X] reverse ribbons
|
||||
[_] 0% metadata
|
||||
[_] tag filtering
|
||||
[_] tag editing
|
||||
|
||||
@ -1103,6 +1103,7 @@ var shiftImageUp = function(){ return shiftImage('prev') }
|
||||
|
||||
|
||||
// reverse the ribbon order...
|
||||
// NOTE: this is like flipping the field vertically...
|
||||
function reverseRibbons(){
|
||||
var ribbons = $('.ribbon')
|
||||
var field = $('.field')
|
||||
@ -1129,18 +1130,24 @@ function sortImages(){
|
||||
}
|
||||
|
||||
|
||||
|
||||
// this will reverse the order of images in all ribbons by reversing
|
||||
// id attr and resorting...
|
||||
function reverseImageOrder(){
|
||||
// use the cmp function to update image id's and resort...
|
||||
function resortImagesVia(cmp){
|
||||
// reverse ID order...
|
||||
$($('.image').get().sort(cmpImageOrder).reverse())
|
||||
$($('.image').get().sort(cmp))
|
||||
.each(function(i, e){$(e).attr({'id': i})})
|
||||
// resort the images...
|
||||
sortImages()
|
||||
}
|
||||
|
||||
|
||||
// reverse the order of images in all ribbons by reversing their id attr
|
||||
// and resorting...
|
||||
// NOTE: this is like flipping the field horizontally...
|
||||
function reverseImageOrder(){
|
||||
resortImagesVia(function(a, b){return cmpImageOrder(b, a)})
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/*********************************************************************/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user