Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2016-01-16 08:53:03 +03:00
parent 7eeaf231ce
commit f819acfa94

View File

@ -174,6 +174,8 @@ module.MetadataReader = core.ImageGridFeatures.Feature({
//--------------------------------------------------------------------- //---------------------------------------------------------------------
// Metadata editor/viewer... // Metadata editor/viewer...
// //
// NOTE: this is by-design platform independent...
//
// XXX first instinct is to use browse with editable fields as it will // XXX first instinct is to use browse with editable fields as it will
// give us: // give us:
// - searchability // - searchability
@ -188,10 +190,9 @@ module.MetadataReader = core.ImageGridFeatures.Feature({
// - script layout tweaking (post-update) // - script layout tweaking (post-update)
// //
// ...need to think about this... // ...need to think about this...
// XXX add a way to sort fields...
// XXX this should basically be platform independent... // XXX add ability to manually sort fields -- moving a field up/down
// XXX add ability to sort fields -- moving a field up/down edits .config... // edits .config...
// ...not sure how to go about this yet... // ...not sure how to go about this yet...
// XXX add combined fields... // XXX add combined fields...
// 'Make' + 'Camera Model Name' // 'Make' + 'Camera Model Name'
@ -200,6 +201,7 @@ module.MetadataReader = core.ImageGridFeatures.Feature({
// 'Lens ID', 'Lens' // 'Lens ID', 'Lens'
// XXX show all fields but make some of them hidden/disabled // XXX show all fields but make some of them hidden/disabled
// -- togglable via D // -- togglable via D
// XXX add field editing... (open)
var MetadataUIActions = actions.Actions({ var MetadataUIActions = actions.Actions({
config: { config: {
'metadata-field-order': [ 'metadata-field-order': [
@ -222,6 +224,7 @@ var MetadataUIActions = actions.Actions({
}, },
// XXX should we replace 'mode' with nested set of metadata??? // XXX should we replace 'mode' with nested set of metadata???
// XXX make this support multiple images...
// XXX BUG: with mode 'disabled' key D enables elements but does not // XXX BUG: with mode 'disabled' key D enables elements but does not
// hide them... // hide them...
showMetadata: ['Image/Show metadata', showMetadata: ['Image/Show metadata',
@ -276,7 +279,13 @@ var MetadataUIActions = actions.Actions({
fields) fields)
// path selected... // path selected...
.open(function(evt, path){ .open(function(evt, path){
//o.close() // edit field...
/*
o.client.filter().find('.text')
.last()
.prop('contenteditable', true)
.focus()
*/
})) }))
.close(function(){ .close(function(){
}) })