mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 10:20:08 +00:00
some cleanup...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
be141fc3c0
commit
997c5432c5
@ -71,9 +71,11 @@ core.ImageGridFeatures.Feature('viewer-testing', [
|
|||||||
//'ui-current-image-indicator-hide-on-screen-nav',
|
//'ui-current-image-indicator-hide-on-screen-nav',
|
||||||
'ui-image-state-indicator',
|
'ui-image-state-indicator',
|
||||||
'ui-global-state-indicator',
|
'ui-global-state-indicator',
|
||||||
'ui-action-tree',
|
|
||||||
'ui-url-history',
|
'ui-url-history',
|
||||||
|
|
||||||
|
'ui-browse-actions',
|
||||||
|
'ui-widget-test',
|
||||||
|
|
||||||
// experimental and optional features...
|
// experimental and optional features...
|
||||||
//'auto-single-image',
|
//'auto-single-image',
|
||||||
|
|
||||||
|
|||||||
@ -27,7 +27,6 @@ var drawer = require('lib/widget/drawer')
|
|||||||
|
|
||||||
|
|
||||||
/*********************************************************************/
|
/*********************************************************************/
|
||||||
// XXX revise names...
|
|
||||||
|
|
||||||
// NOTE: if the action returns an instance of overlay.Overlay this will
|
// NOTE: if the action returns an instance of overlay.Overlay this will
|
||||||
// not close right away but rather bind to:
|
// not close right away but rather bind to:
|
||||||
@ -125,7 +124,7 @@ var makeActionLister = function(list, filter, pre_order){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var ActionTreeActions = actions.Actions({
|
var BrowseActionsActions = actions.Actions({
|
||||||
config: {
|
config: {
|
||||||
// NOTE: the slashes at the end are significant, of they are not
|
// NOTE: the slashes at the end are significant, of they are not
|
||||||
// present the .toggleNonTraversableDrawing(..) will hide
|
// present the .toggleNonTraversableDrawing(..) will hide
|
||||||
@ -148,9 +147,9 @@ var ActionTreeActions = actions.Actions({
|
|||||||
return overlay.getOverlay(o || this.viewer)
|
return overlay.getOverlay(o || this.viewer)
|
||||||
}],
|
}],
|
||||||
|
|
||||||
|
|
||||||
browseActions: ['Interface/Browse actions',
|
browseActions: ['Interface/Browse actions',
|
||||||
makeActionLister(browse.makePathList, true)],
|
makeActionLister(browse.makePathList, true)],
|
||||||
|
|
||||||
listActions:['Interface/List actions',
|
listActions:['Interface/List actions',
|
||||||
makeActionLister(browse.makeList,
|
makeActionLister(browse.makeList,
|
||||||
// format the doc to: <name> (<category>, ..)
|
// format the doc to: <name> (<category>, ..)
|
||||||
@ -161,6 +160,27 @@ var ActionTreeActions = actions.Actions({
|
|||||||
return a +' ('+ l.join(', ') +')'
|
return a +' ('+ l.join(', ') +')'
|
||||||
})],
|
})],
|
||||||
|
|
||||||
|
})
|
||||||
|
|
||||||
|
var BrowseActions =
|
||||||
|
module.BrowseActions = core.ImageGridFeatures.Feature({
|
||||||
|
title: '',
|
||||||
|
doc: '',
|
||||||
|
|
||||||
|
tag: 'ui-browse-actions',
|
||||||
|
depends: [
|
||||||
|
'ui'
|
||||||
|
],
|
||||||
|
|
||||||
|
actions: BrowseActionsActions,
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
//---------------------------------------------------------------------
|
||||||
|
// XXX make this not applicable to production...
|
||||||
|
|
||||||
|
var WidgetTestActions = actions.Actions({
|
||||||
// XXX this is just a test...
|
// XXX this is just a test...
|
||||||
embededListerTest: ['Test/Lister test (embeded)/*',
|
embededListerTest: ['Test/Lister test (embeded)/*',
|
||||||
function(path, make){
|
function(path, make){
|
||||||
@ -342,23 +362,21 @@ var ActionTreeActions = actions.Actions({
|
|||||||
function(){ this.showTaggedInDrawer('selected') }],
|
function(){ this.showTaggedInDrawer('selected') }],
|
||||||
})
|
})
|
||||||
|
|
||||||
var ActionTree =
|
var WidgetTest =
|
||||||
module.ActionTree = core.ImageGridFeatures.Feature({
|
module.WidgetTest = core.ImageGridFeatures.Feature({
|
||||||
title: '',
|
title: '',
|
||||||
doc: '',
|
doc: '',
|
||||||
|
|
||||||
tag: 'ui-action-tree',
|
tag: 'ui-widget-test',
|
||||||
depends: [
|
depends: [
|
||||||
'ui'
|
'ui-browse-actions',
|
||||||
],
|
],
|
||||||
|
|
||||||
actions: ActionTreeActions,
|
actions: WidgetTestActions,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**********************************************************************
|
/**********************************************************************
|
||||||
* vim:set ts=4 sw=4 : */
|
* vim:set ts=4 sw=4 : */
|
||||||
return module })
|
return module })
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user