added basic image order reverse...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2013-06-01 23:12:32 +04:00
parent 8696254d88
commit 2fe8479720
3 changed files with 33 additions and 11 deletions

View File

@ -74,8 +74,8 @@ Roadmap
[_] 22% Gen 3 current todo [_] 23% Gen 3 current todo
[_] 45% High priority [_] 46% High priority
[_] BUG: aligning still sometimes gets off... [_] BUG: aligning still sometimes gets off...
| ...after rotating a number of images | ...after rotating a number of images
| |
@ -110,18 +110,18 @@ Roadmap
| positioning is OK but ribbons are not fully visible... | positioning is OK but ribbons are not fully visible...
[_] ASAP: test on Android... [_] ASAP: test on Android...
[_] empty view (no data) usable... [_] empty view (no data) usable...
[_] propper system init (start w.o. any data) [_] proper system init (start w.o. any data)
[_] revise reporting scheme...
| showStatus(...) should be called uniformly, either at the source
| or a specific reporting layer...
[_] tweak image pre-caching size -- keep as many images cached as possible. [_] tweak image pre-caching size -- keep as many images cached as possible.
| might be good to always cache the smaller previews so as to make things | might be good to always cache the smaller previews so as to make things
| look faster... | look faster...
[_] image sorting (date/name/...)
[_] 50% Undo/Redo
[X] basic one step (revert to last save)
[_] push/pop state stack
[_] single ribbon mode [_] single ribbon mode
| should this have up/down navigation? | should this have up/down navigation?
| |
| something like showGidsAsRibbon(gids) would be generic and logical... | something like showGidsAsRibbon(gids) would be generic and logical...
[_] image sorting (reverse/date/name/...)
[_] add ability to save/load ranges of images and the structures around them [_] add ability to save/load ranges of images and the structures around them
| e.g.load image 100 to current ribbon -> will load 100 images | e.g.load image 100 to current ribbon -> will load 100 images
| for current ribbon and all the in between images from other | for current ribbon and all the in between images from other
@ -149,9 +149,6 @@ Roadmap
| a list or a member image (primary). | a list or a member image (primary).
[_] collection [_] collection
| make or add to existing collection | make or add to existing collection
[_] 50% Undo/Redo
[X] basic one step (revert to last save)
[_] push/pop state stack
[_] 0% grouping / meta-image [_] 0% grouping / meta-image
[_] versions w. label image [_] versions w. label image
| a set of images that is represented by one of the group | a set of images that is represented by one of the group
@ -167,11 +164,15 @@ Roadmap
[_] 0% CSS [_] 0% CSS
[_] cleanup [_] cleanup
[_] split themes and layout [_] split themes and layout
[_] revise reporting scheme...
| showStatus(...) should be called uniformly, either at the source
| or a specific reporting layer...
[_] 0% manual ordering [_] 0% manual ordering
[_] 0% tweak loader [_] 0% tweak loader
[_] thresholds and frame size [_] thresholds and frame size
[_] remove extra and repetitive actions [_] remove extra and repetitive actions
[_] caching config [_] caching config
[X] reverse ribbons...
[X] slideshow mode... [X] slideshow mode...
[X] default STUB image... [X] default STUB image...
| or a loading animation.. | or a loading animation..

View File

@ -949,6 +949,22 @@ function loadSettings(){
/**********************************************************************
* Actions...
*/
// XXX revise...
function reverseImages(){
DATA.order.reverse()
for(var i=0; i < DATA.ribbons.length; i++){
DATA.ribbons[i].reverse()
}
loadData()
}
/********************************************************************** /**********************************************************************
* Image caching... * Image caching...
*/ */

View File

@ -272,7 +272,12 @@ var KEYBOARD_CONFIG = {
}, },
L: doc('Rotate image left', function(){ rotateLeft() }), L: doc('Rotate image left', function(){ rotateLeft() }),
R: doc('Rotate image right', function(){ rotateRight() }), R: {
default: doc('Rotate image right',
function(){ rotateRight() }),
ctrl: doc('Reverse image order',
function(){ reverseImages() }),
},
// zooming... // zooming...