mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 10:20:08 +00:00
some tweaking docs and minor stuff...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
24f8cbbcec
commit
8f8ed2d6c9
@ -486,20 +486,39 @@ var CollectionActions = actions.Actions({
|
|||||||
collect: ['- Collections/',
|
collect: ['- Collections/',
|
||||||
core.doc`Add items to collection
|
core.doc`Add items to collection
|
||||||
|
|
||||||
|
.collect('current', collection)
|
||||||
|
-> this
|
||||||
|
|
||||||
|
.collect('ribbon', collection)
|
||||||
|
-> this
|
||||||
|
|
||||||
|
.collect('loaded', collection)
|
||||||
|
-> this
|
||||||
|
|
||||||
|
.collect(gid, collection)
|
||||||
|
.collect([gid, ,. ], collection)
|
||||||
|
-> this
|
||||||
|
|
||||||
|
|
||||||
NOTE: this will not account for item topology.`,
|
NOTE: this will not account for item topology.`,
|
||||||
function(gids, collection){
|
function(gids, collection){
|
||||||
|
var that = this
|
||||||
collection = collection || this.collection
|
collection = collection || this.collection
|
||||||
if(collection == null || collection == MAIN_COLLECTION_TITLE){
|
if(collection == null || collection == MAIN_COLLECTION_TITLE){
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
var that = this
|
|
||||||
|
|
||||||
if(!this.collections || !(collection in this.collections)){
|
// create collection if needed...
|
||||||
this.newCollection(collection)
|
(!this.collections
|
||||||
}
|
|| !(collection in this.collections))
|
||||||
|
&& this.newCollection(collection)
|
||||||
|
|
||||||
gids = gids == 'loaded' ? this.data.getImages('loaded')
|
gids = gids == 'loaded' ?
|
||||||
: gids instanceof Array ? gids
|
this.data.getImages('loaded')
|
||||||
|
: gids == 'ribbon' ?
|
||||||
|
[this.current_ribbon]
|
||||||
|
: gids instanceof Array ?
|
||||||
|
gids
|
||||||
: [gids]
|
: [gids]
|
||||||
gids = gids
|
gids = gids
|
||||||
.map(function(gid){
|
.map(function(gid){
|
||||||
@ -543,9 +562,9 @@ var CollectionActions = actions.Actions({
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!this.collections || !(collection in this.collections)){
|
(!this.collections
|
||||||
this.newCollection(collection)
|
|| !(collection in this.collections))
|
||||||
}
|
&& this.newCollection(collection)
|
||||||
|
|
||||||
// if only collection is given, reset align to null...
|
// if only collection is given, reset align to null...
|
||||||
align = align === collection ? null : align
|
align = align === collection ? null : align
|
||||||
@ -1486,7 +1505,9 @@ var UICollectionActions = actions.Actions({
|
|||||||
addToCollection: ['Collections|Image/Add $image to collection...',
|
addToCollection: ['Collections|Image/Add $image to collection...',
|
||||||
widgets.uiDialog(function(gids){
|
widgets.uiDialog(function(gids){
|
||||||
return this.browseCollections(function(title){
|
return this.browseCollections(function(title){
|
||||||
this.collect(gids || this.current, title) }) })],
|
this.collect(gids || 'current', title) }) })],
|
||||||
|
addRibbonToCollection: ['Collections|Ribbon/Add $ribbon to collection...',
|
||||||
|
widgets.uiDialog(function(){ return this.addToCollection('ribbon') })],
|
||||||
addLoadedToCollection: ['Collections/$Add loaded images to collection...',
|
addLoadedToCollection: ['Collections/$Add loaded images to collection...',
|
||||||
widgets.uiDialog(function(){ return this.addToCollection('loaded') })],
|
widgets.uiDialog(function(){ return this.addToCollection('loaded') })],
|
||||||
joinToCollection: ['Collections/$Merge view to collection...',
|
joinToCollection: ['Collections/$Merge view to collection...',
|
||||||
|
|||||||
@ -385,7 +385,7 @@ module.ImageEditMarks = core.ImageGridFeatures.Feature({
|
|||||||
|
|
||||||
var ImageMarkGroupActions = actions.Actions({
|
var ImageMarkGroupActions = actions.Actions({
|
||||||
// NOTE: this will only group loaded images...
|
// NOTE: this will only group loaded images...
|
||||||
groupMarked: ['Group|Mark/-90:Group loaded marked images',
|
groupMarked: ['Group|Mark/-70:Group loaded marked images',
|
||||||
{journal: true,
|
{journal: true,
|
||||||
browseMode: 'cropMarked'},
|
browseMode: 'cropMarked'},
|
||||||
function(){
|
function(){
|
||||||
@ -511,7 +511,7 @@ var ImageBookmarkEditActions = actions.Actions({
|
|||||||
// 'on' - toggle all on
|
// 'on' - toggle all on
|
||||||
// 'off' - toggle all off
|
// 'off' - toggle all off
|
||||||
// 'next' - toggle each image to next state
|
// 'next' - toggle each image to next state
|
||||||
toggleBookmarkOnMarked: ['Bookmark|Mark/-90:Toggle bookmark on maked images',
|
toggleBookmarkOnMarked: ['Bookmark|Mark/-70:Toggle bookmark on maked images',
|
||||||
{browseMode: 'cropMarked'},
|
{browseMode: 'cropMarked'},
|
||||||
function(action){
|
function(action){
|
||||||
return this.toggleBookmark(this.data.getTaggedByAny('selected'), action)
|
return this.toggleBookmark(this.data.getTaggedByAny('selected'), action)
|
||||||
|
|||||||
@ -1213,6 +1213,8 @@ var BrowseActionsActions = actions.Actions({
|
|||||||
// Non existing elements will not get drawn...
|
// Non existing elements will not get drawn...
|
||||||
//'File/-99:moo',
|
//'File/-99:moo',
|
||||||
'99:$Edit',
|
'99:$Edit',
|
||||||
|
'Edit/Undo',
|
||||||
|
'Edit/Redo',
|
||||||
'$Navigate',
|
'$Navigate',
|
||||||
'$Image',
|
'$Image',
|
||||||
'Image/-70:---',
|
'Image/-70:---',
|
||||||
@ -1266,9 +1268,12 @@ var BrowseActionsActions = actions.Actions({
|
|||||||
'Collections/-70:---',
|
'Collections/-70:---',
|
||||||
'Collections/-70:.*remove.*',
|
'Collections/-70:.*remove.*',
|
||||||
'$Mark',
|
'$Mark',
|
||||||
//'Mark/-99:.*remove.*',
|
'Mark/-80:---',
|
||||||
|
'Mark/-80:.*remove.*',
|
||||||
|
'Mark/-90:.*unmark.*',
|
||||||
'$Bookmark',
|
'$Bookmark',
|
||||||
//'Bookmark/-99:.*remove.*',
|
'Bookmark/-80:---',
|
||||||
|
'Bookmark/-80:.*remove.*',
|
||||||
|
|
||||||
// ...
|
// ...
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user