diff --git a/ui (gen4)/features/meta.js b/ui (gen4)/features/meta.js index a56d1e88..3041e02a 100755 --- a/ui (gen4)/features/meta.js +++ b/ui (gen4)/features/meta.js @@ -71,9 +71,11 @@ core.ImageGridFeatures.Feature('viewer-testing', [ //'ui-current-image-indicator-hide-on-screen-nav', 'ui-image-state-indicator', 'ui-global-state-indicator', - 'ui-action-tree', 'ui-url-history', + 'ui-browse-actions', + 'ui-widget-test', + // experimental and optional features... //'auto-single-image', diff --git a/ui (gen4)/features/ui-widgets.js b/ui (gen4)/features/ui-widgets.js index 93677879..c97ec49c 100755 --- a/ui (gen4)/features/ui-widgets.js +++ b/ui (gen4)/features/ui-widgets.js @@ -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 // 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: { // NOTE: the slashes at the end are significant, of they are not // present the .toggleNonTraversableDrawing(..) will hide @@ -148,9 +147,9 @@ var ActionTreeActions = actions.Actions({ return overlay.getOverlay(o || this.viewer) }], + browseActions: ['Interface/Browse actions', makeActionLister(browse.makePathList, true)], - listActions:['Interface/List actions', makeActionLister(browse.makeList, // format the doc to: (, ..) @@ -161,6 +160,27 @@ var ActionTreeActions = actions.Actions({ 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... embededListerTest: ['Test/Lister test (embeded)/*', function(path, make){ @@ -342,23 +362,21 @@ var ActionTreeActions = actions.Actions({ function(){ this.showTaggedInDrawer('selected') }], }) -var ActionTree = -module.ActionTree = core.ImageGridFeatures.Feature({ +var WidgetTest = +module.WidgetTest = core.ImageGridFeatures.Feature({ title: '', doc: '', - tag: 'ui-action-tree', + tag: 'ui-widget-test', depends: [ - 'ui' + 'ui-browse-actions', ], - actions: ActionTreeActions, + actions: WidgetTestActions, }) - - /********************************************************************** * vim:set ts=4 sw=4 : */ return module })